﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Chinaer.DTO.UI;


namespace Chinaer.UI.MVC.Controllers
{
    public class MenuController : Controller
    {
        //
        // GET: /Menu/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult PartialMenu()
        {
            List<MenuDTO> listMenu = new List<MenuDTO>();

            listMenu.Add(new MenuDTO()
            {
                ParentID = null,
                ID = "11",
                MenuName = "地址相关"
            });
            listMenu.Add(new MenuDTO()
            {
                ParentID = "11",
                ID = "11",
                MenuName = "国家相关",
                Url = "#"
            });
            listMenu.Add(new MenuDTO()
            {
                ParentID = "11",
                ID = "11",
                MenuName = "省份相关",
                Url = "#"
            });
            listMenu.Add(new MenuDTO()
            {
                ParentID = "11",
                ID = "11",
                MenuName = "城市相关",
                Url = "#"
            });
            listMenu.Add(new MenuDTO()
            {
                ParentID = "11",
                ID = "11",
                MenuName = "地域相关",
                Url = "#"
            });

            return View(listMenu);
        }
    }
}
